#ifndef MESSAGE_PACK_H_H
#define MESSAGE_PACK_H_H

#include "MessageCommand.h"
#include "CommandArgs.h"

#include "boost/shared_ptr.hpp"

class MessagePack
{
	typedef unsigned char Byte;
public:
	MessagePack(int socketFd);
	void toSocket(const CommandArgs& args) const;
	boost::shared_ptr<MessageCommand> createCmdFromSocket() const;

	int getSocketFd() const{
		return m_SocketFd;
	}
	void setSocketFd(int socketFd){
		m_SocketFd = socketFd;
	}
private:
	int m_SocketFd;
};

#endif